﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PInitiatives.Models;
using System.ComponentModel.DataAnnotations;

namespace PInitiatives.ViewModels.VMInitiative
{
    public class VMInitiativeBrowse
    {
        public IQueryable<Initiative> Initiatives { get; set; }
        public IQueryable<Category> Categories { get; set; }

        public string searchString { get; set; }
        public int category { get; set; }
        public DateTime startDateFrom { get; set; }
        public string status { get; set; }
        public string userName { get; set; }
        public int created { get; set; }
        public bool participated { get; set; }
    }
    
    public class VMInitiativeDetails
    {
        public Initiative Initiative { get; set; }
        public IQueryable<Review> Reviews { get; set; }
        public bool participates { get; set; }
        public bool isAuthor { get; set; }
        public string status { get; set; }
        public int category { get; set; }
    }

    public class VMInitiativeCreate
    {
        public Initiative Initiative { get; set; }
        public string userName { get; set; }
    }


    public class VMInitiativeEdit
    {
        public Initiative Initiative { get; set; }
        public string userName { get; set; }
    }

    public class VMInitiativeSendEmail
    {
        public Initiative Initiative { get; set; }
        public string Subject { get; set; }
        [DataType(DataType.MultilineText)]
        public string Message { get; set; }
    }

    
}